<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><!-- 使用c:标签需要添加本行代码 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
  <head>  
    <title>课程管理</title>
 	<link rel="stylesheet" type="text/css" href="css/manager.css">
  </head>
  <body>
    <div id="user_top">
        课程管理
    </div><!-- user_top end -->
    <div style="width:760px; height:480px; overflow:auto;"><!-- 滚动条 -->
        <div id="user_mid">
        <table id="user_table" id="user_table" border="0" width="100%" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                	<td>课程编号</td>
                	<td>课程名称</td>
                	<td>操作</td>
                	<td>操作</td>
                </tr> 
      </thead>
            <c:forEach items="${entityList}" var="item">
                <tr>
                    <td>${item.courseId}</td>
                    <td>${item.courseName}</td>
                    <td><a href="<%=path%>/ActionServlet?method=updatePage&entity=Course&entityId=${item.courseId}
                    &userName=${item.courseName}">编辑</a></td>
                    <td><a href="<%=path%>/ActionServlet?method=delete&entity=Course&entityId=${item.courseId}">删除</a></td>
                </tr>
            </c:forEach> 
        </table>
    </div><!-- user_mid end -->
    </div>
    <div id="user_bottom">
        <h2><a href="<%=path%>/ActionServlet?entity=Course&method=insertPage">添加课程</a></h2>
    </div><!-- "user_bottom" end -->
  </body>
</html>